home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / cracking / BeginnersMacAssembly.sit.hqx / BeginnersMacAssembly.rsrc / PICT_67.png < prev    next >
Portable Network Graphic  |  1997-07-26  |  125KB  |  816x1056  |  8-bit (256 colors)
Labels: book | encyclical | poster | sky | tree | windowpane
OCR: Sat, Feb 17, 1996 SUBQ WBegirb,Douide Macintosh Assembly DBRAAWAYS LOOPS MORT THAN THE COUNT! MOVE. D1.D2 SAVE SIZE OF LINE(IN BYTES) NEXT LINE: CLEAR LINE CLR.L A1+ CLEAR THIS BYTE OF VRAM AND POINT TO NEXT DBRA D1. CLEAR LINE CLEAR THIS LINE MOVE D2D1 RESET BYTES/LINE COUNTER DBRA D0,NEXT LINE CLEAR NEXTLINE MOVEM.L (SP)+ D0-D2/A1 RESTORE REGS RTS ** * * ** * * ** * * VARIABL ES FOLLOW **** **** **** ***** MY VARS: DS.B 20 SPACE FOR OUR VARIABLES *OFFSETS INTO VARIABLES NUMB OF LINES: EQU W NUMBER OF PHYSICAL LINES ON SCREEN VRAM ADDR: EQU LABSOLUTE ADDRESS OF VRAM This example is a little more complicated as its been written in position independent code, and saves a5 and a6 before running. and restores them when its finished. The main program calls two subroutines The first, INIT sets u ...